@extends('layout.admin.index')
@section('content')
<body>
<div class="panel admin-panel">
  <!-- 子菜单列表 网站配置 -->
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>{{ $title }}</strong></div>
  <div class="body-content">

    <!-- 管理员修改开始-跳转执行修改路由 -->
    <form method="post" class="form-x" action="/admin/config/doweb"  enctype="multipart/form-data">  
    {{ csrf_field() }}
      <div class="form-group">
      </div>


      <!-- 修改网站标题 -->
      <div class="form-group">
        <div class="label">
          <label>网站标题：</label>
        </div>
        <div class="field"  style="margin-bottom:-11px">
          <input type="text" class="input w50" value="{{ $data['config_title'] }}" name="config_title"/><font style="font-size:20px;color:red">*</font>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:#aac">(网站标题：显示在页面的左上角，如：Webshop)</div>
      </div>


      <!-- 网站logo -->
      <div class="form-group">
        <div class="label">
          <label>网站logo图标：</label>
        </div>
        <div class="field"  style="margin-bottom:-17px">
          <input type="file" name="pic" style="float:left;margin-top:8px"><br><br>

          <!-- logo是否显示 -->
          <!-- <img src="/images/admin/config_logo/{{ $data['config_logo'] }}" alt="" width="100px" height="100px"> -->
          
        </div>
         <div style="float:left;margin:8px 0 -10px 0;color:#aac">(网站首页的头部logo大小：<font color="red">272*58</font>，不想更新logo请忽略此处)</div>
      </div>  


      <!-- 网站关键字 -->
      <div class="form-group">
        <div class="label">
          <label>网站关键字：</label>
        </div>
        <div class="field" style="margin-bottom:-10px">
          <input type="text" class="input w50" value="{{ $data['config_keyword'] }}" name="config_keyword"/><font style="font-size:20px;color:red">*</font>
          <div class="tips"></div>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:#aac">(便于引擎查找,当输入多个时，用","分隔。如：mall,web)</div>
      </div>

      <!-- 网站描述 -->
      <div class="form-group">
        <div class="label">
          <label>网站描述：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <textarea name="config_descript" id="" cols="60" rows="4" style="resize:none;float:left">{{ $data['config_descript'] }}</textarea><font style="font-size:20px;color:red">*</font>
          <!-- <div class="tips"></div> -->
          <div style="Clear:both;margin:8px 0 -10px 0;color:#aac">(网站的重点描述信息，让访客清除了解网站概要。)</div>
        </div>
      </div>
      
       <!-- 是否开启 -->
      <div class="form-group">
        <div class="label">
          <label>网站开关：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <ul>
            <li style="margin-top:10px">
                开：<input type="radio" value="1" name="config_switch" @if($data['config_switch'] == 1) checked @endif/>
                关：<input type="radio" value="2" name="config_switch" @if($data['config_switch'] == 2) checked @endif/>
            </li>
          </ul>
          <div class="tips"></div>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:red">(注意：网站关闭,关闭则任何人无法访问,请谨慎操作.默认：开启)</div>
      </div>

      <!-- 是否禁用注册 -->
      <div class="form-group">
        <div class="label">
          <label>是否禁用注册：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <ul>
            <li style="margin-top:10px">
                否：<input type="radio" value="1" name="config_register" @if($data['config_register'] == 1) checked @endif/>
                是：<input type="radio" value="2" name="config_register" @if($data['config_register'] == 2) checked @endif/>
            </li>
          </ul>
          <div class="tips"></div>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:red">(禁用注册,关闭则任何人无法注册,请谨慎操作.默认：否)</div>
      </div>

      <!-- 注册同意条款 -->
      <div class="form-group">
        <div class="label">
          <label>注册同意条款：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <textarea name="config_pact" id="" cols="60" rows="4" style="resize:none;float:left">{{ $data['config_pact'] }}</textarea>
          <div style="Clear:both;margin:8px 0 -10px 0;color:#aac">(用于注册时所需要的服务条款)</div>
        </div>
      </div>

      <!-- 是否禁用注册 -->
      <div class="form-group">
        <div class="label">
          <label>邮箱验证开关：</label>
        </div>
        <div class="field"  style="margin-bottom:-10px">
          <ul>
            <li style="margin-top:10px">
                是：<input type="radio" value="1" name="config_check" @if($data['config_check'] == 1) checked @endif/>
                否：<input type="radio" value="2" name="config_check" @if($data['config_check'] == 2) checked @endif/>
            </li>
          </ul>
          <div class="tips"></div>
        </div>
        <div style="float:left;margin:8px 0 -10px 0;color:#abc">(是否开启邮箱验证)</div>
      </div>

      <!-- 获取id -->
      <input type="hidden" name="id" value="{{ $data['id'] }}">


      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 更新站点设置</button>
        </div>
      </div>
    </form>
    <!-- 管理员修改结束 -->
  </div>
</div>
</body>
@endsection